package com.xueyi.system.supervisory.domain.po;

import java.time.LocalDateTime;
import java.util.Date;

import cn.hutool.json.JSONArray;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.xueyi.system.supervisory.domain.dto.BaseProcessMonitorDto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xueyi.common.core.annotation.Excel;

/**
 * 过程监控 持久化对象
 *
 * @author yanhe
 */
@TableName(value = "base_process_monitor", excludeProperty = {"name", "sort", "status"},autoResultMap = true)
public class BaseProcessMonitorPo extends TBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 品名
     */
    @Excel(name = "品名")
    @TableField("product_name")
    private String productName;

    /**
     * 过程名称
     */
    @Excel(name = "过程名称")
    @TableField("process_name")
    private String processName;

    /**
     * 批次
     */
    @Excel(name = "批次")
    @TableField("batch")
    private String batch;

    /**
     * 日期监控
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "日期监控", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("date_monitor")
    private LocalDateTime dateMonitor;

    /**
     * 日期监控结果及意见
     */
    @Excel(name = "日期监控结果及意见")
    @TableField("opinions")
    private String opinions;

    /**
     * 备注偏差情况
     */
    @Excel(name = "备注偏差情况")
    @TableField("deviation")
    private String deviation;

    /**
     * 质量监督人
     */
    @Excel(name = "质量监督人")
    @TableField("quality_supervisor")
    private String qualitySupervisor;

    /**
     * 车间负责人
     */
    @Excel(name = "车间负责人")
    @TableField("workshop_manager")
    private String workshopManager;

    /**
     * 附件
     */

    @TableField(value = "appendix", typeHandler = FastjsonTypeHandler.class)
    private JSONArray appendix;

    public JSONArray getAppendix() {
        return appendix;
    }

    public void setAppendix(JSONArray appendix) {
        this.appendix = appendix;
    }

    public LocalDateTime getDateMonitor() {
        return dateMonitor;
    }

    public void setDateMonitor(LocalDateTime dateMonitor) {
        this.dateMonitor = dateMonitor;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductName() {
        return productName;
    }

    public void setProcessName(String processName) {
        this.processName = processName;
    }

    public String getProcessName() {
        return processName;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }

    public String getBatch() {
        return batch;
    }


    public void setOpinions(String opinions) {
        this.opinions = opinions;
    }

    public String getOpinions() {
        return opinions;
    }

    public void setDeviation(String deviation) {
        this.deviation = deviation;
    }

    public String getDeviation() {
        return deviation;
    }

    public void setQualitySupervisor(String qualitySupervisor) {
        this.qualitySupervisor = qualitySupervisor;
    }

    public String getQualitySupervisor() {
        return qualitySupervisor;
    }

    public void setWorkshopManager(String workshopManager) {
        this.workshopManager = workshopManager;
    }

    public String getWorkshopManager() {
        return workshopManager;
    }

}
